package myorg.myrpc.thrift;

import net.gdface.thrift.ClientFactory;

public class IMyrpcClientAsync extends IMyrpcThriftClientAsync {
	private final ClientExtendTools clientTools;
	public IMyrpcClientAsync(ClientFactory factory) {
		super(factory);
		clientTools = new ClientExtendTools(this);
	}	
    /**
     * @param host RPC service host
     * @param port RPC service port 
     */
    public IMyrpcClientAsync(String host,int port) {
        this(ClientFactory.builder().setHostAndPort(host,port));
    }
    /**
     * test if connectable for RPC service
     * @return return {@code true} if connectable ,otherwise {@code false}
     */
    public boolean testConnect(){
        return getFactory().testConnect();
    }
}
